package com.demo.dao;

import com.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: LoginMapper
 * @Author: ChenXueLi
 * @Date: 2018-10-02 15:06
 */
@Mapper
public interface LoginMapper {

    /**
     * 用户登录
     * @param account
     * @param password
     * @return
     */
    List<User> login(@Param("account") String account, @Param("password") String password);

    /**
     * 用户登出
     * @param user
     * @return
     */
    int loginOut(User user);

}
